var context = require('../config/auth.context');

module.exports = function($stateProvider) {
    $stateProvider
        .state({
            name: 'o2o_c.addrs',
            url: context.pathNoRoot + '/addrs',
            template: require('../views/addr-manage.html'),
            controller: 'addrsController'
        })
        .state({
            name: 'o2o_c.orderlist',
            url: context.pathNoRoot + '/orders',
            template: require('../views/orderlist.html'),
            controller: 'orderListController'
        })
        .state({
            name: 'o2o_c.order',
            url: context.pathNoRoot + '/orders/:orderId',
            template: require('../views/order.html'),
            controller: 'orderController'
        })
        .state({
            name: 'o2o_c.pay',
            url: context.pathNoRoot + '/pay',
            template: require('../views/pay.html'),
            controller: 'payController'
        });
}